<?php
declare (strict_types = 1);

namespace app\model;
/**
 * @mixin \think\Model
 */
class AdminAppVersion extends Base
{
    //
    protected $autoWriteTimestamp = true;

    public function getCreateTimeAttr($value) {
        return date('Y-m-d H:i:s', $value);
    }

    public function school() {
        return $this->belongsTo(AdminSchool::class, 'school_id')
            ->where('is_delete', 0)->bind([
                'school_name' => 'name'
            ]);
    }
}
